﻿<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MedicalManagementSystem.Models.DiagnosBloc>>" 
MasterPageFile="~/Views/Shared/AdminSite.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Блоки диагнозов
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainRightColumn" runat="server">

    <h2>Блоки диагнозов</h2>

    <table class="data_table">
        <tr>
            <th/>
            <th>
                Название
            </th>
            <th></th>
        </tr>       
    <%int i = 1;%>
    <%foreach (var item in Model) { %>
        <tr>
            <td> <%= Html.Encode(i++)%></td>
            <td>
                <%= Html.ActionLink(item.Name, "Details", new { item.id })%>
            </td>
            <td>
                <%= Html.ActionLink("Редактировать", "Edit", new { item.id }) %> <br />
                <%= Html.ActionLink("Удалить", "Delete", new { item.id }) %>
            </td>
        </tr>
    <% } %>

    </table>
    <p>
        <%= Html.ActionLink("Добавить", "Create") %>
    </p>

</asp:Content>